import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [

  /*{
    path: '/Login', //登录
    name: 'Login',
    component:Login
  },*/
  {
    path: '/', //主页
    name: 'Manage',
    component: () => import('../views/Manage'),
    redirect: "/pandect",
    children: [
      { path: 'pandect', name: 'Pandect', meta: {title: '总览'}, component: () => import('../views/Pandect') },
      { path: 'confirmed', name: 'Confirmed', meta: {title: '流调管理 / 确诊病例管理'}, component: () => import('../views/Confirmed') },
      { path: 'contiguity', name: 'Contiguity', meta: {title: '流调管理 / 密接人员管理'}, component: () => import('../views/Contiguity') },
      { path: 'command', name: 'Command', meta: {title: '指挥调度'}, component: () => import('../views/Command') },
      { path: 'agenda', name: 'Agenda', meta: {title: '居家检测 / 每日待办'}, component: () => import('../views/Agenda') },
      { path: 'append', name: 'Append', meta: {title: '居家检测 / 每日新增'}, component: () => import('../views/Append') },
      { path: 'abnormal', name: 'Abnormal', meta: {title: '居家检测 / 每日异常'}, component: () => import('../views/Abnormal') },
      { path: 'living', name: 'Living', meta: {title: '居家检测 / 居家检测'}, component: () => import('../views/Living') },
      { path: 'notice', name: 'Notice', meta: {title: '通知公告'}, component: () => import('../views/Notice') },
      { path: 'information_registration', name: 'InformationRegistration', meta: {title: '统计分析 / 信息登记统计'}, component: () => import('../views/InformationRegistration') },
      { path: 'contact_people', name: 'ContactPeople', meta: {title: '统计分析 / 密接人群统计'}, component: () => import('../views/ContactPeople') },
      { path: 'organization', name: 'Organization', meta: {title: '设置 / 组织管理'}, component: () => import('../views/Organization') },
      { path: 'account', name: 'Account', meta: {title: '设置 / 账号管理'}, component: () => import('../views/Account') },
      { path: 'character', name: 'Character', meta: {title: '设置 / 角色管理'}, component: () => import('../views/Character') },
      { path: 'system', name: 'System', meta: {title: '设置 / 系统日志'}, component: () => import('../views/System') },
      { path: 'datum', name: 'Datum', meta: {title: '设置 / 数据字典管理'}, component: () => import('../views/Datum') },
      { path: 'settings', name: 'Settings', meta: {title: '设置 / 系统设置'}, component: () => import('../views/Settings') },
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
